Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODSemanticInterface


InitSemanticInterface

The InitSemanticInterface method initializes this semantic interface object.

void InitSemanticInterface (in ODPart base, 
                            in ODSession session);
base
A reference to a part associated with this semantic interface object.
session
A reference to the current session object.
DISCUSSION
This method is not called directly to initialize this semantic interface object, but is called by a subclass-specific initialization method. By convention, every subclass of ODSemanticInterface should have a separate initialization method (for example, the InitMySemanticInterface method) that is called when an instance of that subclass is created. The override method may have additional parameters beyond those of the InitSemanticInterface method. The InitMySemanticInterface method should call the inherited InitSemanticInterface method at the beginning of its implementation.

If you subclass ODSemanticInterface, your subclass-specific initialization method, rather than its somInit method, should handle any initialization code that can potentially fail. For example, your initialization method may attempt to allocate memory for your semantic interface.

OVERRIDING
If you subclass ODSemanticInterface, you must not override this method.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996